package cn.istartfinancial.service;


import cn.istartfinancial.entity.SysMenu;
import com.alibaba.fastjson.JSONArray;
import java.util.List;

/**
 * @author: Nzp
 * @date: 2018/8/22
 * @description: 菜单服务接口
 */
public interface MenuService
{
    List<SysMenu> getMenuNotSuper();

    int insert(SysMenu menu);

    List<SysMenu> getMenuChildren(String id);

    JSONArray getMenuJsonList();

    List<SysMenu> getMenuChildrenAll(String id);

    JSONArray getTreeUtil(String roleId);

    List<SysMenu> getUserMenu(String id);

    JSONArray getMenuJsonByUser(List<SysMenu> menuList);

    SysMenu selectByPrimaryKey(String id);

    int insertSelective(SysMenu sysMenu);

    int updateByPrimaryKeySelective(SysMenu oldMenu);

    int deleteByPrimaryKey(String id);

    int selectCount(SysMenu sysMenu);
}
